#include<iostream>
#include<string.h>
#include<stdlib.h>
#include<algorithm>
using namespace std;

class A
{
private:
	int x,y;
public:
	A(int _x ,int _y)
	{
		x = _x;
		y = _y;
		cout<<"this is the struct A constructor"<<endl;
	}

	void getVal()
	{
		cout<<x<<" "<<y<<endl;
	}
};

int main()
{
	string s="abcde";
	string t="abcdd";
	sort(s.begin(),s.end());
	sort(t.begin(),t.end());
	if( s==t )   cout<<"true"<<endl;
	else cout<<"false"<<endl;

	A* a[10];
	for(int i=0;i<10;i++)
	{
		a[i] = new A(i,i+1);
	}

	for(int i=0;i<10;i++)
	{
		a[i]->getVal();
	}

	return 0;
}
